﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YJM.ModbusMonitor.GUI.Models;

namespace YJM.ModbusMonitor.GUI.ViewModels
{
    public class DataMonitorViewModel : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        #region 属性
        private List<TreeNode> signalTree = new List<TreeNode>();
        public List<TreeNode> SignalTree
        {
            get { return signalTree; }
            set
            {
                signalTree = value;
                if (this.PropertyChanged != null)
                {
                    this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("SignalTree"));//当Name的属性值发生改变时，PropertyChanged事件触发
                }
            }
        }
        #endregion
        public DataMonitorViewModel()
        {

        }

        #region 命令

        #endregion
    }
}
